<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */
function getListOfTemplates($dir = "../templates"){
    $templates = array();
$handle = opendir($dir);
for ($i = 0; ($file = readdir($handle)) !== false; $i++){
        $templates[$i] = $file;
}
closedir($handle);

return $templates;
}

?>